import { Dialog } from './dialogClass'
import DialogApp from './dialogApp.vue'
import { createApp } from 'vue'

const dialogApp = document.createElement('div')
dialogApp.id = 'dialog-app'
document.body.appendChild(dialogApp)
createApp(DialogApp).mount('#dialog-app')

export function slayerDialog(component: any) {
  return new Dialog(component)
}
